var __UIBattle_instance = null;
function getUIBattle() { return __UIBattle_instance; }

var UIBattle = function(){};


UIBattle.prototype.onDidLoadFromCCB = function()
{
    cc.log("UIBattle.onDidLoadFromCCB");
    __UIBattle_instance = this;

};

UIBattle.prototype.getBattleScene = function()
{
    return this.uiBattleScene;
};

UIBattle.prototype.getDeployLayer = function()
{
    return this.uiDeployLayer;
};


UIBattle.prototype.showDeployUI = function(isShow)
{
	this.uiDeploy.setVisible(isShow);
};

UIBattle.prototype.onStart = function()
{
	//cc.log("onStart");
	BattleManager.onDeployOver();
};

UIBattle.prototype.setHp = function(side, p)
{
	if(side == helper.SIDE_UP) {
		glb.displayTexturePercent(this.uiHpUp, p, true);
	} else {
		glb.displayTexturePercent(this.uiHpDown, p, true);
	}
}
